<include file="Public:header" />
<!--主体内容-->
<!--左边-->
<div class="centent_box">
    <include file="Public:left" />
    <!--右边-->
    <div class="centent_right_box">
        <div class="centent_right rightCon">
            <div class="Mtitle">
                <ul>
                    <li><span><a href="{:U('Ask/help')}">向我求肋</a></span></span></li>
                    <li class="on"><span><a href="{:U('Ask/hilpEdit',array('id'=>$info['id']))}">回答问题</a></span></li>
                </ul>
                <div class="rightWord"><a href="{:U('Ask/help')}">向我求肋</a> &gt;&gt; 回答问题</div>
            </div>
            <form id="info_form" action="{:U('Ask/helpEdit')}" method="post" enctype="multipart/form-data">
            <input type="hidden" name="id" value="{$info.id}">
            <div class="con_div">
                <ul class="formList width2 list_ul list_li">
                    <li><label>问题名称：</label>{$info.title}</li>
                    <li><label>问题描述：</label>{$info.info}</li>
                    <li><label>联系姓名：</label>{$info.name}</li>
                    <li><label>联系电话：</label>{$info.phone}</li>
                    <li><label>解决状态：</label><span class="blue"><php>if($info['solve_status']==2){</php>已经解决<php>}else{</php>等待解决<php> }</php></php></span></li>
                    <li class="height3">
                        <label>我的回答：</label>
                        <textarea class="textarea" id="answer" name="answer">{$answer.info}</textarea>
                    </li>
                    <li>
                        <label></label>
                        <input type="submit" value="提 交" class="btnStyle">
                    </li>
                </ul>
            </div>
            </form>
        </div>
    </div>
</div>
<script src="__S__/js/jquery.validate.js"></script>
<script type="text/javascript">
    $(function(){
        $("#info_form").validate({
            rules: {
                answer: {
                    required: true,
                    minlength: 2
                }
            },
            messages: {
                answer: {
                    required: "请输入回答内容",
                    minlength: "回答内容一定要两个字以上"
                }
            }
        });
    });
</script>
<include file="Public:footer" />